<!--
 * @Descripttion:
 * @Author: xiao li
 * @Date: 2020-10-20 11:31:01
 * @LastEditors: xiao li
 * @LastEditTime: 2020-10-26 18:35:10
-->
<template>
  <div>
    <div
      class="fill-base cate-list-info rel"
      v-if="o.data.columnList.length > 0"
    >
      <div class="cate-info-list flex-warp fill-base box-shadow radius-15 abs">
        <div
          class="flex-center flex-column"
          v-for="(bitem, bindex) in o.data.columnList"
          :key="bindex"
          :style="{ width: 100 / o.data.columnList.length + '%' }"
        >
          <img class="column-img" :src="bitem.img[0].url" />
          <div class="column-text text-center mt-sm ellipsis">
            {{ bitem.title }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'restaurantCateList',
  props: {
    o: Object,
    isMyGoods: false
  },
  data () {
    return {
      primaryColor: '#19c865',
      image: 'https://lbqny.migugu.com/admin/diy/default.png'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.cate-list-info {
  height: 135px;
}
.cate-info-list {
  width: 343px;
  height: 115px;
  left: 16px;
  bottom: 10px;
}
.column-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.column-img {
  width: 50px;
  height: 50px;
}
.column-text {
  font-size: 12px;
  text-align: center;
  color: #999;
  width: 80%;
  height: 20px;
  padding: 0 10%;
}
</style>
